package com.daxia.ogmall.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.daxia.ogmall.model.BaseModel;

import javax.persistence.ManyToOne;
import com.daxia.ogmall.model.UserDesign;
import com.daxia.ogmall.model.SpaceObject;
import javax.persistence.JoinColumn;
import com.daxia.ogmall.model.Space;
import com.daxia.ogmall.model.Specification;
import com.daxia.ogmall.model.Product;

/**
 * UserDesignDetail
 */
@Entity
@Table(name = "userdesigndetail") 
public class UserDesignDetail extends BaseModel {
	
	public UserDesignDetail() {
	}
	
	public UserDesignDetail(Long id) {
		this.id = id;
	}
	
	/**
	 * id
	 */
	@Id
	@GeneratedValue
	@Column(name = "id")
    private Long id;
	/**
	 * 用户方案
	 */
	@ManyToOne
	@JoinColumn(name = "userDesign_id")
    private UserDesign userDesign;
	/**
	 * 空间
	 */
    private String space;
	/**
	 * 空间位置
	 */
    private String spaceObject;
	/**
	 * 产品
	 */
	@ManyToOne
	@JoinColumn(name = "product_id")
    private Product product;
	/**
	 * 产品规格
	 */
	@ManyToOne
	@JoinColumn(name = "specification_id")
    private Specification specification;
	/**
	 * 产品数量
	 */
	@Column(name = "count")
    private Integer count;
	
	public Long getId() {
    	return id;
    }
	
    public void setId(Long id) {
    	this.id = id;
    }
	
	public UserDesign getUserDesign() {
    	return userDesign;
    }
	
    public void setUserDesign(UserDesign userDesign) {
    	this.userDesign = userDesign;
    }
	
	
	
	public String getSpace() {
		return space;
	}

	public void setSpace(String space) {
		this.space = space;
	}

	public String getSpaceObject() {
		return spaceObject;
	}

	public void setSpaceObject(String spaceObject) {
		this.spaceObject = spaceObject;
	}

	public Product getProduct() {
    	return product;
    }
	
    public void setProduct(Product product) {
    	this.product = product;
    }
	
	public Specification getSpecification() {
    	return specification;
    }
	
    public void setSpecification(Specification specification) {
    	this.specification = specification;
    }
	
	public Integer getCount() {
    	return count;
    }
	
    public void setCount(Integer count) {
    	this.count = count;
    }
	
}
